docs/gen-html-index: Make HTML::TreeBuilder::XPath optional again
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 13 Apr 2018 13:55:27 +0000 (14:55 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 13 Apr 2018 16:04:36 +0000 (17:04 +0100)
commit16fb4b5a9a79f95df17f10ba62e9f44d21cf89b5
tree4396b8cde99aa693605a9566829f4bbae2f81721
parentba2931d4e38fac4e6960e10b245efd3badeb4aa2
docs/gen-html-index: Make HTML::TreeBuilder::XPath optional again

7782db9260d4 "docs/gen-html-index: Extract titles from HTML documents"
requires HTML::TreeBuilder::XPath.

This is sadly not as widely available as I had hoped.  Work around
this problem by making the use of this module optional: instead of
`use'ing at the toplevel, we `require' it in the eval.  If it's not
present, then the title is simply not extracted and the filename is
used as before, which is tolerable.

Also add some debugging.

Reported-by: Doug Goldstein <cardoe@cardoe.com>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
Tested-by: Doug Goldstein <cardoe@cardoe.com>
docs/gen-html-index